<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Node</title>
</head>
<body>
<jsp:include page="../menu.jsp" />
<div>Node</div>


<div>Parent nodes:</div>
			<c:forEach items="${node.parents}" var="key">
                <div>
                    <a href="/cms/node/${key.id}"><c:out value="${key.id}"/></a>
                </div>
            </c:forEach>

<div>Id: <c:out value="${node.id}"/></div>
<div>label: <c:out value="${node.label}"/></div>
<div>url: <c:out value="${node.url}"/></div>
<div>project: <a href="/cms/project/${node.project.id}"><c:out value="${node.project.id}"/></a></div>
<div>fields: <a href="/cms/${node.id}/fields">(details)</a></div>
			<c:forEach items="${node.contentFields}" var="field">
                <div>
                    <a href="/cms/field/${node.id}"><c:out value="${field.id}"/></a>
                </div>
            </c:forEach>
<div>nodes:</div>
			<c:forEach items="${node.contentNodes}" var="node">
                <div>
                    <a href="/cms/node/${node.id}"><c:out value="${node.id}"/></a>
                </div>
            </c:forEach>
<a href="/cms/${node.id}/fields">Show fields</a>
<a href="/cms/${node.id}/node/createsub">Add sub-node</a>
</body>
</html>